<?php
namespace App;

class Bar
{
    public function index(){
        $foo = new Foo();
        echo $foo->foo();
    }
}